package com.lineage.server.serverpackets;

import com.lineage.server.templates.L1Config;

public class S_PacketBoxConfig extends ServerBasePacket {
  private byte[] _byte = null;
  
  public static final int CHARACTER_CONFIG = 41;
  
  public S_PacketBoxConfig(L1Config config) {
    int length = config.getLength();
    byte[] data = config.getData();
    writeC(250);
    writeC(41);
    writeD(length);
    writeByte(data);
  }
  
  public byte[] getContent() {
    if (this._byte == null)
      this._byte = getBytes(); 
    return this._byte;
  }
  
  public String getType() {
    return getClass().getSimpleName();
  }
}
